package com.gaogao.java;

public class Controller extends ExController{
   static int a=0;
   static {
       System.out.println("我随后执行");
   }
static Go go;
    public Controller(){
        super();
      go=  new Go();
        a++;

        System.out.println("我是儿子");
    }
    public static void main(String args[]){
       Controller controller=new Controller();
      System.out.println(controller.c);
      System.out.println(go.b);
    }
}
class ExController{
    static {
        System.out.println("我先执行");
    }
  int c=11;
    ExController(){
        System.out.println("我是你的父亲");
    }
}
class Go {
    int b=8;
Go(){
    System.out.println("我是隔壁老王");
}

}
